﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int total = 0;
        int i = 0;
        while (total <= 1000)
        {
            i++;
            total += i;
            Response.Write("1加到" + i + "等于" + total + "<br/>");//输出到页面。可以输出Html的标签 <hr></hr>           
        }
        
    }
}
